#ifndef COLLECTOR_H
#define COLLECTOR_H

#include <QThread>
#include <QNetworkReply>
#include <QNetworkAccessManager>
#include "httprequest.h"

class Collector:public QThread
{
    Q_OBJECT
public:
    Collector();
    ~Collector();

protected:
    void run();
    void stop();
private:
    volatile bool stopped; //停止标志

private slots:
    void replyFinished(QNetworkReply *reply);
};

#endif // COLLECTOR_H
